<script src="<?php echo CHEMIN_MODELE.'jquery.js';?>"></script>
<script src="<?php echo CHEMIN_MODELE.'ckeditor/ckeditor.js';?>"></script>

<form method="post" action="index.php?module=edition&action=editerMails">
	<p>
		<label for="mail">Mail à éditer :</label>
		<select id="liste_mails" name="mail" onChange="submit()">
			<option value="aucun">Aucun</option>
			<?php
				foreach(MailManager::$_listeMails as $m)
				{
					$selectionner = ($mail->get_fileName() == $m[0]) ? "selected" : "";
					echo	'
								<option value="'.$m[0].'" '.$selectionner.'>'.$m[1].'</option>
							';
				}
			?>
		</select>
		<label for="objet">Objet : </label>
		<input type="text" name="objet" value="<?php echo $mail->get_objet();?>">
	</p>
	<textarea class="ckeditor" cols="80" id="editor" name="editor" rows="10">
		<?php
			echo $mail->get_contenu();
		?>
	</textarea>
	<input type="submit" name="enregistrer" value="Enregistrer"/>
</form>